FROM registry.openanolis.cn/openanolis/anolisos:23

LABEL \
    maintainer="OpenAnolis Intel Arch SIG" \
    org.opencontainers.image.title="OpenResty-accel" \
    org.opencontainers.image.version="1.22.1-23"

RUN dnf install openssl1.1 -y
RUN dnf install qatengine intel-QAT20-devel intel-ipp-crypto-mb intel-ipsec-mb qatzip-devel -y
RUN dnf install openresty -y

COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]

ENV PATH=$PATH:/usr/share/openresty/bin/:/usr/share/openresty/nginx/sbin/
STOPSIGNAL SIGQUIT

CMD ["openresty", "-g", "daemon off;"]
